//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_operations_returnList.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Goods_sub":"","Goods_name":"","Goods_size":"","AvailableQuantity":"","Goods_price":"","Return_total_price":"","Operations_returnList":"","WHSE_name":"","Goods_num":"","Return_price":"","Remark":""},
		editFormOptions: [{"title":"备注","field":"Remark"},
                               {"title":"退货数量","required":true,"field":"Goods_num","type":"number"},
                               {"title":"退货单价","required":true,"field":"Return_price","type":"number"},
                               {"type":"group"},
                               {"title":"商品编码","field":"Goods_sub"},
                               {"title":"商品名称","field":"Goods_name"},
                               {"title":"规格型号","field":"Goods_size"},
                               {"title":"可用数量","field":"AvailableQuantity","type":"decimal"},
                               {"title":"发货单价","field":"Goods_price","type":"decimal"},
                               {"title":"ID","required":true,"field":"Operations_returnList","disabled":true},
                               {"key":"库位编码","data":[],"title":"库位名称","field":"WHSE_name"},
                               {"title":"退货总价","required":true,"field":"Return_total_price","type":"decimal"}],
		searchFormFields: {},
		searchFormOptions: [],
		columns: [{field:'Goods_sub',title:'商品编码',type:'string'},
                       {field:'Goods_name',title:'商品名称',type:'string'},
                       {field:'Goods_size',title:'规格型号',type:'string'},
                       {field:'AvailableQuantity',title:'可用数量',type:'float'},
                       {field:'Goods_num',title:'退货数量',type:'float',edit:true },
                       {field:'Remark',title:'备注',type:'string'},
                       {field:'WHSE_name',title:'库位名称',type:'string',bind:{ key:'库位编码',data:[]}}],
		table: {
			key: 'Operations_returnList',
			footer: "Foots",
			cnName: '运维退货明细',
			name: 'q_operations_returnList',
			url: "/q_operations_returnList/",
			sortName: "Goods_sub"
		}
	}
}
